#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
char s[110];
int main()
{
	while(scanf("%s",s)!=EOF)
	{
		int numA = 0;
		int numa = 0;
		int len =strlen(s);
		for(int i = 0;i<len;i++)
		{
			if(s[i]>='A'&&s[i]<='Z') numA++;
			else numa++;
		}
		if(numA>numa)
		{
			for(int i = 0;i<len;i++)
			{
				if(s[i]>='a'&&s[i]<='z') s[i]=s[i]-32;
			}
		}
		else
		{
			for(int i = 0;i<len;i++)
			{
				if(s[i]>='A'&&s[i]<='Z') s[i]=s[i]+32;
			}
		}
		puts(s);
	}
}
